package com.dense.kuiniu.shelfcard.entity;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Administrator
 * @date 2020/9/23
 */
public class BindInfo implements Parcelable {

    /**
     * creatTime : string
     * idcard : string
     * fkReaderName : string
     * state : string
     * cardNumber : string
     */
    private String creatTime;
    private String idcard;
    private String fkReaderName;
    private String state;
    private String cardNumber;
    private Bitmap bitmap;
    private String cardState;

    public String getCardState() {
        return cardState;
    }

    public void setCardState(String cardState) {
        this.cardState = cardState;
    }
    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public void setFkReaderName(String fkReaderName) {
        this.fkReaderName = fkReaderName;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getCreatTime() {
        return creatTime;
    }

    public String getIdcard() {
        return idcard;
    }

    public String getFkReaderName() {
        return fkReaderName;
    }

    public String getState() {
        return state;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.creatTime);
        dest.writeString(this.idcard);
        dest.writeString(this.fkReaderName);
        dest.writeString(this.state);
        dest.writeString(this.cardNumber);
        dest.writeString(this.cardState);
        dest.writeParcelable(this.bitmap, flags);
    }

    public BindInfo() {
    }

    protected BindInfo(Parcel in) {
        this.creatTime = in.readString();
        this.idcard = in.readString();
        this.fkReaderName = in.readString();
        this.state = in.readString();
        this.cardNumber = in.readString();
        this.cardState = in.readString();
        this.bitmap = in.readParcelable(Bitmap.class.getClassLoader());
    }

    public static final Creator<BindInfo> CREATOR = new Creator<BindInfo>() {
        @Override
        public BindInfo createFromParcel(Parcel source) {
            return new BindInfo(source);
        }

        @Override
        public BindInfo[] newArray(int size) {
            return new BindInfo[size];
        }
    };
}